import request from '@/utils/request'

// 查询提现明细列表
export function listWithdraw(query) {
  return request({
    url: '/system/withdraw/list',
    method: 'get',
    params: query
  })
}

// 查询提现明细详细
export function getWithdraw(withdrawSerial) {
  return request({
    url: '/system/withdraw/' + withdrawSerial,
    method: 'get'
  })
}

// 新增提现明细
export function addWithdraw(data) {
  return request({
    url: '/system/withdraw',
    method: 'post',
    data: data
  })
}

// 修改提现明细
export function updateWithdraw(data) {
  return request({
    url: '/system/withdraw',
    method: 'put',
    data: data
  })
}

// 删除提现明细
export function delWithdraw(withdrawSerial) {
  return request({
    url: '/system/withdraw/' + withdrawSerial,
    method: 'delete'
  })
}

export function systemWallet(data) {
  return request({
    url: 'system/wallet/'+data.sysUserId,
    method: 'get'
  })
}